/**
 * @Author:  renyc
 * @Date: 2022年12月22日14:46:41
 */
'use strict';

class YAxis{
    constructor(name){

        this._option = {
            name : name || "",
            type : "value",
            //inverse : false
        };
    }

    get option(){
        return this._option;
    }

    get name(){
        return this._option.name;
    }

    set name(value){
        this._option.name = value;
    }

    get type(){
        return this._option.type;
    }

    set type(value){
        return this._option.type = value;
    }

    get inverse(){
        return this._option.inverse;
    }

    set inverse(value){
        this._option.inverse = value;
    }

    get nameLocation(){
        return this._option.nameLocation;
    }

    set nameLocation(value){
        this._option.nameLocation = value;
    }

    get alignTicks(){
        return this._option.nameLocation;
    }

    set alignTicks(value){
        this._option.alignTicks = value;
    }
}

export default YAxis

/**
yAxis: [
    {
      name: 'Flow(m³/s)',
      type: 'value',
      inverse: true
    },
    {
      name: 'Rainfall(mm)',
      nameLocation: 'start',
      alignTicks: true,
      type: 'value',
    }
  ],
 */